package com.huzy.smalloop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ziyin.hu
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description="用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    @Schema(description = "登录名")
    private String username;

    @Schema(description = "用户名")
    private String nickname;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "随机盐")
    private String salt;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "0-正常，9-锁定")
    private String lockFlag;

    @Schema(description = "0-正常，1-删除")
    private String delFlag;

    @Schema(description = "控制密码")
    private String passwordControl;

    @Schema(description = "1-第一套皮肤，2-第二套皮肤")
    private String skinType;

    @Schema(description = "小程序openId")
    private String openId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "更新人")
    private String updateBy;

    private String icon;


}
